package demo11;





import demo11.controller.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Testcomfig {
    public static void main(String[] args) {
        ApplicationContext context=
                new AnnotationConfigApplicationContext(comfig.class);
        UserController a = context.getBean(UserController.class);
        a.controller();
    }
}
